class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table "users", :force => true do |t|
      t.column :email,                     :string
      t.column :crypted_password,          :string, :limit => 40
      t.column :salt,                      :string, :limit => 40
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :remember_token,            :string
      t.column :remember_token_expires_at, :datetime
      t.boolean :admin, :default => false
      t.boolean :superior, :default => false
      t.string :time_zone
      t.string :app_language, :default => "en"
      t.references :company
      t.string :name
      t.string :education
      t.string :city
      t.string :country
      t.date :birthday
      t.string :title
      t.timestamps
    end
  end

  def self.down
    drop_table "users"
  end
end
